import numpy as np

arr1 = np.array([1,2,3])
arr2 = np.array([4,5,6])
print('横向组合后的数组为：\n',np.hstack((arr1,arr2)))

arr1 = np.array([1,2,3])
arr2 = np.array([4,5,6])
print('纵向组合后的数组为：\n',np.vstack((arr1,arr2)))

arr1 = np.array([[1,2,3],[4,5,6]])
arr2 = np.array([[7,8,9],[10,11,12]])
print('纵向组合后的数组为：\n',np.vstack((arr1,arr2)))
